package internal

import (
	"github.com/chenwbyx/leafserver/server/login/internal/logic"
	"github.com/chenwbyx/leafserver/server/msg/client"
	"reflect"
)

func init() {
	handler(&client.UserLoginReq{}, logic.HandleUserLogin)
	handler(&client.UserRegisterReq{}, logic.HandleUserRegister)
}

func handler(m interface{}, h interface{}) {
	skeleton.RegisterChanRPC(reflect.TypeOf(m), h)
}
